home *** CD-ROM | disk | FTP | other *** search
/ Aminet 35 / Aminet 35 (2000)(Schatztruhe)[!][Feb 2000].iso / Aminet / gfx / misc / gnuplot-src.lha / gnuplot-3.7.1src / gnuplot-3.7.1.lha / gnuplot-3.7.1 / docs / Makefile.in < prev    next >
Encoding:
Makefile  |  1999-10-27  |  12.2 KB  |  441 lines

  1. # Makefile.i ../config.h $(tcumentation
  2. #
  3. # Note that the top-level file for documentation is gnuplot.doc.
  4. # See README.
  5. #
  6. # To print manual:
  7. #
  8. #   For LaTeX
  9. #       make gnuplot.dvi
  10. #       (print or view gnuplot.dvi)
  11. #     or (requires pdflatex)
  12. #       make pdf
  13. #       (print or view gnuplot.pdf)
  14. #     or
  15. #       make ps
  16. #       (print or view gnuplot.ps)
  17. #
  18. #   For groff (GNU troff}
  19. #       make grotxt
  20. #       (print or view gnuplot.txt)
  21. #     or
  22. #       make grodvi
  23. #       (print or view gnuplot.dvi)
  24. #     or
  25. #       make grops
  26. #       (print or view gnuplot.ps)
  27. #
  28. #   For nroff
  29. #     make gnuplot.nroff
  30. #     (print or view gnuplot.nroff)
  31. #
  32. #   For troff
  33. #     make "TROFF=itroff" troff    (use your troff here)
  34. #
  35.  
  36. # default is what is needed for interactive gnuplot
  37. all: gnuplot.gih
  38.  
  39. # this tells GNU make not to export variables into the environment
  40. # But other makes dont understand its significance, so it must
  41. # not be the first target in the file. So it is here, before
  42. # any variables are created, but after the default target
  43. .NOEXPORT:
  44.  
  45. SHELL = /bin/sh
  46.  
  47. prefix = @prefix@
  48. exec_prefix = @exec_prefix@
  49. bindir = @bindir@
  50. datadir = @datadir@
  51. infodir = @infodir@
  52. srcdir = @srcdir@
  53. top_builddir = ..
  54. top_srcdir = @top_srcdir@
  55. VPATH = @srcdir@
  56.  
  57. INSTALL = @INSTALL@
  58. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  59. INSTALL_DATA = @INSTALL_DATA@
  60.  
  61. CC     = @CC@
  62. CPP    = @CPP@
  63. DEFS   = @DEFS@
  64. CPPFLAGS = @CPPFLAGS@
  65. CFLAGS = @CFLAGS@
  66. INCLUDES = -I.. -I$(top_srcdir) -I$(top_srcdir)/term -I.
  67. LDFLAGS = @LDFLAGS@
  68. LIBS = @LIBS@
  69.  
  70. COMPILE = $(CC) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
  71. LINK = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
  72.  
  73. .c.o:
  74.     $(COMPILE) -c $<
  75.  
  76. # The makeinfo command from GNU texinfo
  77. MAKEINFO = makeinfo
  78.  
  79. # If you want to try doc2texi.el
  80. # EMACS = emacs
  81.  
  82. # substitute your troff command (and any flags) for this one
  83. TROFF = troff
  84.  
  85. # LaTeX command, either latex or latex2e or no
  86. LATEX = latex
  87.  
  88. # PDFLaTeX command
  89. PDFLATEX = pdflatex
  90.  
  91. # substitute your DVI to PostScript conversion program here
  92. DVIPS = dvips
  93.  
  94. T = ${srcdir}/../term
  95. CORETERM = $(T)/aed.trm $(T)/ai.trm $(T)/amiga.trm $(T)/apollo.trm \
  96. $(T)/atariaes.trm $(T)/atarivdi.trm $(T)/be.trm $(T)/cgi.trm $(T)/cgm.trm \
  97. $(T)/corel.trm $(T)/debug.trm $(T)/djsvga.trm $(T)/dumb.trm $(T)/dxf.trm \
  98. $(T)/dxy.trm $(T)/eepic.trm $(T)/emxvga.trm $(T)/epson.trm $(T)/excl.trm \
  99. $(T)/fg.trm $(T)/fig.trm $(T)/gif.trm $(T)/gnugraph.trm $(T)/gpic.trm \
  100. $(T)/gpr.trm $(T)/grass.trm $(T)/hp26.trm $(T)/hp2648.trm $(T)/hp500c.trm \
  101. $(T)/hpgl.trm $(T)/hpljii.trm $(T)/hppj.trm $(T)/imagen.trm $(T)/iris4d.trm \
  102. $(T)/kyo.trm $(T)/latex.trm $(T)/linux.trm $(T)/mac.trm $(T)/metafont.trm \
  103. $(T)/metapost.trm $(T)/mgr.trm $(T)/mif.trm $(T)/multitos.trm \
  104. $(T)/next.trm $(T)/openstep.trm $(T)/pbm.trm $(T)/pc.trm $(T)/pm.trm \
  105. $(T)/png.trm $(T)/post.trm $(T)/pslatex.trm $(T)/pstricks.trm $(T)/qms.trm \
  106. $(T)/regis.trm $(T)/rgip.trm $(T)/sun.trm $(T)/t410x.trm $(T)/table.trm \
  107. $(T)/tek.trm $(T)/texdraw.trm $(T)/tgif.trm $(T)/tkcanvas.trm $(T)/tpic.trm \
  108. $(T)/unixpc.trm $(T)/unixplot.trm $(T)/v384.trm $(T)/vws.trm $(T)/win.trm \
  109. $(T)/x11.trm $(T)/xlib.trm
  110.  
  111. DIST_COMMON = README Makefile.in
  112.  
  113. SOURCES = checkdoc.c doc2gih.c doc2hlp.c doc2html.c doc2info.c \
  114. doc2ipf.c doc2ms.c doc2rnh.c doc2rtf.c doc2tex.c termdoc.c xref.c
  115.  
  116. HEADERS = doc2x.h xref.h
  117.  
  118. EXTRA_DIST = doc2hlp.com doc2texi.el doc2texi.pl gnuplot.1 gnuplot.doc \
  119. gnuplot.texi gpcard.tex lasergnu.1 makefile.ami makefile.dst titlepag.ms \
  120. titlepag.tex toc_entr.sty latextut old psdoc
  121.  
  122. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(EXTRA_DIST)
  123.  
  124. allterm.h : $(CORETERM)
  125.     @echo Building allterm.h
  126.     @cat $(top_srcdir)/term/*.trm > allterm.c
  127.     $(CPP) -I$(top_srcdir)/term -DTERM_DRIVER_H -DTERM_HELP allterm.c | \
  128.       sed '/^ *$$/d;/^#/d' > allterm.h
  129.     @rm -f allterm.c
  130.  
  131. # for debugging
  132. alldoc: check dvi gih hlp html info ipf ms nroff pdf ps rnh rtf
  133.  
  134. ### [tn]roff documentation
  135. troff: gnuplot.ms titlepag.ms
  136.     @if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
  137.         tbl gnuplot.ms | eqn | $(TROFF) -ms ; \
  138.     else \
  139.         < gnuplot.ms sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," |\
  140.           tbl | eqn | $(TROFF) -ms ; \
  141.     fi
  142.  
  143. nroff: gnuplot.nroff
  144.  
  145. gnuplot.nroff: gnuplot.ms titlepag.ms
  146.     @if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
  147.         tbl gnuplot.ms | neqn | nroff -ms | col > gnuplot.nroff ; \
  148.     else \
  149.         < gnuplot.ms sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," |\
  150.           tbl | neqn | nroff -ms | col > gnuplot.nroff ; \
  151.     fi
  152.  
  153. ### groff documentation
  154.  
  155. groff: grotxt grodvi grops
  156.  
  157. grotxt: gnuplot.ms titlepag.ms
  158.     @if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
  159.         groff -s -p -t -e -ms -Tlatin1 gnuplot.ms > gnuplot.txt ; \
  160.     else \
  161.         sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," gnuplot.ms |\
  162.           groff -s -p -t -e -ms -Tlatin1 gnuplot.ms > gnuplot.txt ; \
  163.     fi
  164.  
  165. grodvi: gnuplot.ms titlepag.ms
  166.     @if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
  167.         groff -s -p -t -e -ms -Tdvi gnuplot.ms > gnuplot.dvi ; \
  168.     else \
  169.         sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," gnuplot.ms |\
  170.           groff -s -p -t -e -ms -Tdvi gnuplot.ms > gnuplot.dvi ; \
  171.     fi
  172.  
  173. grops: gnuplot.ms titlepag.ms
  174.     @if [ "$(srcdir)" = "$(top_builddir)" ] ; then \
  175.         groff -s -p -t -e -ms -Tps gnuplot.ms > gnuplot.ps ; \
  176.     else \
  177.         sed "s,titlepag\.ms,$(srcdir)/titlepag\.ms," gnuplot.ms |\
  178.           groff -s -p -t -e -ms -Tps gnuplot.ms > gnuplot.ps ; \
  179.     fi
  180.  
  181. ### doc2xxx dependencies
  182. ms: gnuplot.ms
  183.  
  184. gnuplot.ms: doc2ms $(srcdir)/gnuplot.doc
  185.     ./doc2ms $(srcdir)/gnuplot.doc gnuplot.ms
  186.  
  187. doc2ms: doc2ms.o termdoc.o
  188.     $(LINK) doc2ms.o termdoc.o $(LIBS)
  189.  
  190. doc2ms.o: doc2ms.c allterm.h
  191.     $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2ms.c
  192.  
  193. ### html
  194. html : gnuplot.html
  195.  
  196. gnuplot.html : doc2html $(srcdir)/gnuplot.doc
  197.     ./doc2html $(srcdir)/gnuplot.doc gnuplot.html
  198.  
  199. doc2html : doc2html.o termdoc.o xref.o
  200.     $(LINK) doc2html.o termdoc.o xref.o $(LDFLAGS) $(LIBS)
  201.  
  202. doc2html.o: doc2html.c allterm.h
  203.     $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2html.c
  204.  
  205. ### PDF documentation
  206. pdf: gnuplot.pdf
  207.  
  208. gnuplot.pdf: gnuplot.tex
  209.     $(PDFLATEX) gnuplot.tex
  210.     $(PDFLATEX) gnuplot.tex
  211.  
  212. ### LaTeX documentation
  213. tex: gnuplot.tex
  214.  
  215. gnuplot.tex: doc2tex $(srcdir)/gnuplot.doc
  216.     ./doc2tex $(srcdir)/gnuplot.doc gnuplot.tex
  217.  
  218. doc2tex: doc2tex.o termdoc.o
  219.     $(LINK) doc2tex.o termdoc.o $(LIBS)
  220.  
  221. doc2tex.o: doc2tex.c allterm.h
  222.     $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2tex.c
  223.  
  224. # this is how to make DVI files
  225. dvi: gnuplot.dvi gpcard.dvi
  226.  
  227. gnuplot.dvi: gnuplot.tex titlepag.tex toc_entr.sty
  228.     @if test $(LATEX) != no ; then \
  229.       TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(LATEX) gnuplot ; \
  230.       TEXINPUTS=.:$(srcdir):${TEXINPUTS}: $(LATEX) gnuplot ; \
  231.     else \
  232.       echo latex not found - cannot build dvi file ; \
  233.     fi
  234.  
  235. gpcard.dvi: gpcard.tex
  236.     TEXINPUTS=.:$(srcdir): tex gpcard
  237.  
  238. ### Postscript format
  239. # if pslatex has been installed, add "times" to titlepage.tex
  240. ps: gnuplot.ps gpcard.ps
  241.  
  242. gnuplot.ps: gnuplot.dvi
  243.     $(DVIPS) gnuplot.dvi -o gnuplot.ps
  244.  
  245. gpcard.ps: gpcard.dvi
  246.     $(DVIPS) gpcard.dvi -o gpcard.ps
  247.  
  248.  
  249. # this is how to make gnuplot.hlp
  250. hlp: gnuplot.hlp
  251.  
  252. gnuplot.hlp: doc2hlp $(srcdir)/gnuplot.doc
  253.     ./doc2hlp $(srcdir)/gnuplot.doc gnuplot.hlp
  254.  
  255. doc2hlp: doc2hlp.o termdoc.o
  256.     $(LINK) doc2hlp.o termdoc.o $(LIBS)
  257.  
  258. ### gnuplot interactive help format
  259. gih: gnuplot.gih
  260.  
  261. gnuplot.gih: doc2gih $(srcdir)/gnuplot.doc
  262.     @rm -f alldoc2gih
  263.     ./doc2gih $(srcdir)/gnuplot.doc gnuplot.gih
  264.  
  265. doc2gih: doc2gih.o termdoc.o
  266.     $(LINK) doc2gih.o termdoc.o $(LIBS)
  267.  
  268. # To include all terminals in the .gih file
  269. allgih: alldoc2gih $(srcdir)/gnuplot.doc
  270.     @rm -f doc2gih
  271.     ./alldoc2gih $(srcdir)/gnuplot.doc gnuplot.gih
  272.  
  273. alldoc2gih: alldoc2gih.o termdoc.o
  274.     $(LINK) alldoc2gih.o termdoc.o $(LIBS)
  275.  
  276. alldoc2gih.o: doc2gih.c allterm.h
  277.     $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/doc2gih.c
  278.     @mv doc2gih.o alldoc2gih.o
  279.  
  280. ### GNU info format
  281. info: gnuplot.info
  282.  
  283. gnuplot.info: doc2info $(srcdir)/gnuplot.doc
  284.     ./doc2info $(srcdir)/gnuplot.doc gnuplot.info
  285.  
  286. doc2info: doc2info.o termdoc.o xref.o
  287.     $(LINK) doc2info.o termdoc.o xref.o $(LIBS)
  288.  
  289. ## An alternative to doc2info.c, Thanks to Bruce Ravel
  290. #gnuplot.info: $(srcdir)/gnuplot.texi $(srcdir)/gnuplot.doc
  291. #    $(MAKEINFO) -I$(srcdir) $(srcdir)/gnuplot.texi --no-split --output=$@
  292. #gnuplot.texi: $(srcdir)/doc2info.el $(srcdir)/gnuplot.doc
  293. #    @if test "$(EMACS)" != no; then \
  294. #      $(EMACS) -batch -l $(srcdir)/doc2texi.el -f d2t-doc-to-texi; \
  295. #    else \
  296. #      @echo No emacs found - cannot create texinfo file; \
  297. #    fi
  298.  
  299. # this is how to make OS/2 ipfc documentation
  300. ipf: gnuplot.ipf
  301.  
  302. gnuplot.ipf: doc2ipf $(srcdir)/gnuplot.doc
  303.     ./doc2ipf $(srcdir)/gnuplot.doc gnuplot.ipf
  304.  
  305. doc2ipf: doc2ipf.o termdoc.o xref.o
  306.     $(LINK) doc2ipf.o termdoc.o xref.o $(LIBS)
  307.  
  308. ### Rich Text Format
  309. rtf: gnuplot.rtf
  310.  
  311. gnuplot.rtf: doc2rtf $(srcdir)/gnuplot.doc
  312.     ./doc2rtf $(srcdir)/gnuplot.doc gnuplot.rtf
  313.  
  314. doc2rtf: doc2rtf.o termdoc.o xref.o
  315.     $(LINK) doc2rtf.o termdoc.o xref.o $(LIBS)
  316.  
  317. # this is how to make rnh documentation (VMS help format)
  318. rnh: gnuplot.rnh
  319.  
  320. gnuplot.rnh: doc2rnh $(srcdir)/gnuplot.doc
  321.     ./doc2rnh $(srcdir)/gnuplot.doc gnuplot.rnh
  322.  
  323. doc2rnh: doc2rnh.o termdoc.o
  324.     $(LINK) doc2rnh.o termdoc.o $(LIBS)
  325.  
  326. # end doc2xxx section
  327.  
  328. tutorial: latextut/tutorial.tex
  329.     ( cd latextut; $(MAKE) )
  330.  
  331. # this is how to check the gnuplot.doc file
  332. check: all checkdoc
  333.     @./checkdoc < $(srcdir)/gnuplot.doc; \
  334.     if test $$? -eq 0; then \
  335.       echo "PASS: gnuplot.doc"; \
  336.     else \
  337.       :; \
  338.     fi
  339.  
  340. checkdoc: checkdoc.o termdoc.o $(srcdir)/gnuplot.doc
  341.     $(LINK) checkdoc.o termdoc.o $(LIBS)
  342.  
  343. checkdoc.o: checkdoc.c allterm.h
  344.     $(COMPILE) -DALL_TERM_DOC -c $(srcdir)/checkdoc.c
  345.  
  346. # For Unix and MSDOS only
  347. install: gnuplot.gih
  348.     $(top_srcdir)/mkinstalldirs $(datadir)
  349.     $(INSTALL_DATA) gnuplot.gih $(datadir)/gnuplot.gih
  350.  
  351. uninstall:
  352.     rm -f $(datadir)/gnuplot.gih
  353.  
  354. # for VMS only
  355. install-vms: gnuplot.hlp
  356.     $(INSTALL_DATA) gnuplot.hlp $(datadir)/gnuplot.hlp
  357.  
  358. distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
  359.  
  360. subdir = docs
  361.  
  362.  
  363. distdir: $(DISTFILES)
  364.     distdir=`cd $(distdir) && pwd`
  365.     @for file in $(DISTFILES); do \
  366.       d=$(srcdir); \
  367.       if test -d $$d/$$file; then \
  368.         cp -pr $$d/$$file $(distdir)/$$file; \
  369.       else \
  370.         test -f $(distdir)/$$file \
  371.         || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
  372.         || cp -p $$d/$$file $(distdir)/$$file || :; \
  373.       fi; \
  374.     done
  375.  
  376. clean:
  377.     -rm -f doc2tex gnuplot.tex gnuplot.dvi \
  378.       gnuplot.aux gnuplot.log gnuplot.toc \
  379.       gnuplot.ps gpcard.dvi gpcard.log gpcard.ps \
  380.       alldoc2gih doc2gih gnuplot.gih \
  381.       doc2hlp gnuplot.hlp \
  382.       doc2html gnuplot.html \
  383.       doc2info gnuplot.info* gpltinfo.tex \
  384.       doc2ipf gnuplot.ipf \
  385.       doc2ms gnuplot.ms \
  386.       doc2rnh gnuplot.rnh \
  387.       doc2rtf gnuplot.rtf \
  388.       gnuplot.nroff checkdoc *.o core a.out allterm.h
  389.     ( cd latextut; $(MAKE) clean )
  390.     rm -f *.exe
  391.  
  392. mostlyclean: clean
  393.  
  394. distclean: clean
  395.     -rm -f Makefile
  396.  
  397. realclean: distclean
  398.     -rm -f TAGS
  399.  
  400. Makefile: Makefile.in ../config.status
  401.     cd .. \
  402.       && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  403.  
  404. ### Dependencies - do not edit!
  405.  
  406. # all doc2somethings depend on termdoc and either ../term.h or
  407. # allterm.h, maybe this would be better as separate object file
  408. # (but then we have to change all the other makefiles). Plus then
  409. # we cannot make some doc2* filters use allterm.h and others use term.h
  410.  
  411. TERM_H = $(top_srcdir)/term.h
  412.  
  413. checkdoc.o: checkdoc.c ../config.h $(top_srcdir)/ansichek.h \
  414.         $(top_srcdir)/stdfn.h doc2x.h allterm.h
  415. alldoc2gih.o: doc2gih.c ../config.h $(top_srcdir)/ansichek.h \
  416.         $(top_srcdir)/stdfn.h doc2x.h allterm.h
  417. doc2gih.o: doc2gih.c ../config.h $(top_srcdir)/ansichek.h \
  418.         $(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
  419. doc2hlp.o: doc2hlp.c ../config.h $(top_srcdir)/ansichek.h \
  420.         $(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
  421. doc2html.o: doc2html.c ../config.h $(top_srcdir)/ansichek.h \
  422.         $(top_srcdir)/stdfn.h doc2x.h allterm.h
  423. doc2info.o: doc2info.c ../config.h $(top_srcdir)/ansichek.h \
  424.         $(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
  425. doc2ipf.o: doc2ipf.c ../config.h $(top_srcdir)/ansichek.h \
  426.         $(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
  427. doc2ms.o: doc2ms.c ../config.h $(top_srcdir)/ansichek.h \
  428.         $(top_srcdir)/stdfn.h doc2x.h allterm.h
  429. doc2rnh.o: doc2rnh.c ../config.h $(top_srcdir)/ansichek.h \
  430.         $(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
  431. doc2rtf.o: doc2rtf.c ../config.h $(top_srcdir)/ansichek.h \
  432.         $(top_srcdir)/stdfn.h doc2x.h $(TERM_H)
  433. doc2tex.o: doc2tex.c ../config.h $(top_srcdir)/ansichek.h \
  434.         $(top_srcdir)/stdfn.h doc2x.h allterm.h
  435. termdoc.o: termdoc.c ../config.h $(top_srcdir)/ansichek.h \
  436.         $(top_srcdir)/stdfn.h doc2x.h
  437. xref.o: xref.c ../config.h $(top_srcdir)/ansichek.h \
  438.         $(top_srcdir)/stdfn.h doc2x.h xref.h
  439.  
  440. #the end
  441.